package com.duowei.diandan.util;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.TextView;
import android.widget.Toast;

import com.duowei.diandan.R;
import com.duowei.diandan.app.App;

public class ToastUtils {

    public static void show(String message) {
        Context context = App.getApp();
        Toast toast = new Toast(context);
        TextView textView = (TextView) LayoutInflater.from(context).inflate(R.layout.layout_toast, null);
        textView.setText(message);
        toast.setView(textView);
        toast.show();
    }
}
